//
//  SYFunctoinModel.m
//  SanYiTeaching
//
//  Created by 郑浩然 on 2019/4/11.
//  Copyright © 2019年 李文强. All rights reserved.
//

#import "SYFunctoinModel.h"

@implementation SYFunctoinModel


- (NSMutableArray *)monishuju {
    NSMutableArray *dataArr = [NSMutableArray array];
//    NSArray *titleArr = @[@"我的收藏",@"我的文件",@"教研文件",@"机构文件",@"我的微课"]; zy_function_wdwk
    NSArray *titleArr = @[@"我的收藏",@"我的作品",@"我的微课",@"上课视频",@"资源上报"];
    NSArray *imageArr = @[@"zy_function_wdsc",@"zy_function_wdwj",@"zy_function_wdwk",@"zy_function_jgwj",@"zy_function_jywj",@"zy_function_jywj",@"zy_function_jywj"];
    
    [titleArr enumerateObjectsUsingBlock:^(NSString  *obj, NSUInteger idx, BOOL * _Nonnull stop) {
        SYFunctoinModel *funcioin = [[SYFunctoinModel alloc] init];
        funcioin.titleName = obj;
        funcioin.imageName = imageArr[idx];
        funcioin.isFolding = NO;
        funcioin.isBg = NO;
        [dataArr addObject:funcioin];
    }];
    
    return dataArr;
}
- (NSMutableArray *)fromDataArr {
    NSMutableArray *dataArr = [NSMutableArray array];
    NSArray *titleArr = @[@"我的收藏",@"我的作品",@"我的微课",];
    NSArray *imageArr = @[@"zy_function_wdsc",@"zy_function_wdwj",@"zy_function_wdwk",@"zy_function_jgwj",@"zy_function_jywj"];
    
    [titleArr enumerateObjectsUsingBlock:^(NSString  *obj, NSUInteger idx, BOOL * _Nonnull stop) {
        SYFunctoinModel *funcioin = [[SYFunctoinModel alloc] init];
        funcioin.titleName = obj;
        funcioin.imageName = imageArr[idx];
        funcioin.isFolding = NO;
        funcioin.isBg = NO;
        [dataArr addObject:funcioin];
    }];
    
    return dataArr;
}
- (NSMutableArray *)chatDataArr {
    NSMutableArray *dataArr = [NSMutableArray array];
    //    NSArray *titleArr = @[@"我的收藏",@"我的文件",@"教研文件",@"机构文件",@"我的微课"]; zy_function_wdwk
    NSArray *titleArr = @[@"我的收藏",@"我的作品"];
    NSArray *imageArr = @[@"zy_function_wdsc",@"zy_function_wdwj"];
    
    [titleArr enumerateObjectsUsingBlock:^(NSString  *obj, NSUInteger idx, BOOL * _Nonnull stop) {
        SYFunctoinModel *funcioin = [[SYFunctoinModel alloc] init];
        funcioin.titleName = obj;
        funcioin.imageName = imageArr[idx];
        funcioin.isFolding = NO;
        funcioin.isBg = NO;
        [dataArr addObject:funcioin];
    }];
    
    return dataArr;
}
- (NSMutableArray *)yueJuanShuJu {
    NSMutableArray *dataArr = [NSMutableArray array];
    NSArray *titleArr = @[@"试卷批改",@"结果统计"];
    NSArray *imageArr = @[@"yj_function_pigai",@"yj_function_tongji"];
    
    [titleArr enumerateObjectsUsingBlock:^(NSString  *obj, NSUInteger idx, BOOL * _Nonnull stop) {
        SYFunctoinModel *funcioin = [[SYFunctoinModel alloc] init];
        funcioin.titleName = obj;
        funcioin.imageName = imageArr[idx];
        funcioin.isFolding = NO;
        funcioin.isBg = NO;
        [dataArr addObject:funcioin];
    }];
    
    return dataArr;
}


@end

//zy_view_wdvs
@implementation SYCollectionModel

- (NSMutableArray *)monishuju {
    NSMutableArray *dataArr = [NSMutableArray array];
    NSArray *titleArr = @[@"新建文件夹",@"精品视频",@"视频.mp4",@"教案.pptx"];
    NSArray *dateArr = @[@"4项",@"4项",@"2分10秒",@"2分10秒"];
    NSArray *typeArr = @[@"1",@"2",@"3",@"4"];
    [titleArr enumerateObjectsUsingBlock:^(NSString  *obj, NSUInteger idx, BOOL * _Nonnull stop) {
        SYCollectionModel *model = [[SYCollectionModel alloc] init];
        model.titleName = obj;
        model.dateTime = @"2月12日";
        model.timer = dateArr[idx];
        model.type = typeArr[idx];
        [dataArr addObject:model];
    }];
    
    return dataArr;
}


- (NSMutableArray *)weikeshuju {
    NSMutableArray *dataArr = [NSMutableArray array];
    NSArray *titleArr = @[@"词汇评测1",@"词汇评测1",@"词汇评测1",@"词汇评测1"];
    NSArray *dateArr = @[@"2讲",@"2讲",@"3讲",@"4讲"];
    NSArray *typeArr = @[@"5",@"5",@"5",@"5"];
    [titleArr enumerateObjectsUsingBlock:^(NSString  *obj, NSUInteger idx, BOOL * _Nonnull stop) {
        SYCollectionModel *model = [[SYCollectionModel alloc] init];
        model.titleName = obj;
        model.dateTime = @"2018年2月12日 20：00";
        model.timer = dateArr[idx];
        model.type = typeArr[idx];
        [dataArr addObject:model];
    }];
    
    return dataArr;
}
- (NSMutableArray *)wekziwenjianshuju {
    NSMutableArray *dataArr = [NSMutableArray array];
    NSArray *titleArr = @[@"单词解析",@"单词组合",@"单词组合ADB",@"DDD单词组合"];
    NSArray *dateArr = @[@"9分15秒",@"9分15秒",@"9分15秒",@"9分15秒"];
    NSArray *typeArr = @[@"3",@"3",@"3",@"3"];
    [titleArr enumerateObjectsUsingBlock:^(NSString  *obj, NSUInteger idx, BOOL * _Nonnull stop) {
        SYCollectionModel *model = [[SYCollectionModel alloc] init];
        model.titleName = obj;
        model.dateTime = @"2018年2月12日 20：00";
        model.timer = dateArr[idx];
        model.type = typeArr[idx];
        [dataArr addObject:model];
    }];
    
    return dataArr;
}


- (NSMutableArray *)requestDiction:(NSDictionary *)dict {
    NSArray *directory = dict[@"directory"];
    NSArray *fileArr = dict[@"file"];
    NSMutableArray *dataArr = [NSMutableArray array];
    for (NSDictionary *prome in directory) { //文件夹
        SYCollectionModel *model = [[SYCollectionModel alloc] init];
        model.titleName = [prome nilObjectForKey:@"sortName"];
        model.timer = [prome nilObjectForKey:@"sortNums"];
        model.dateTime = [prome nilObjectForKey:@"sortDate"];
        model.type = @"1";
        model.zyid = [prome nilObjectForKey:@"sortId"];
        model.fileIcon = [prome nilObjectForKey:@"string"];
        
        [dataArr addObject:model];
    }
    
    
    for (NSDictionary *prome in fileArr) {
        SYCollectionModel *model = [[SYCollectionModel alloc] init];
        model.titleName = [prome nilObjectForKey:@"title"];
        model.timer = [prome nilObjectForKey:@"size"];
        model.dateTime = [prome nilObjectForKey:@"date"];
        model.type = [prome nilObjectForKey:@"type"];
        model.zyid = [prome nilObjectForKey:@"fileId"];
        model.fileIcon = [prome nilObjectForKey:@"fileIcon"];
        model.path = [prome nilObjectForKey:@"path"];
        model.downLoadPath = [prome nilObjectForKey:@"downLoadPath"];
        model.checkStatusName = [prome nilObjectForKey:@"checkStatusName"];
        [dataArr addObject:model];
    }
    
    return dataArr;
}


@end


@implementation SYPlayerTutorRecordModel

@end


@implementation SYPlayerTutorVideoModel


@end

@implementation SYPlayerTutorModel


@end












